<%= render :partial => "apo/navigation" %>

<div id="containerBody">


  <% if session[:user].admin? %>

    <h1>Officer Information</h1>

    <%= error_messages_for "position" %>
  	<p><font color = "red"> <%= flash[:error] %> </font></p>
    <div class="container">

      <% form_tag :action => "save" , :id => params[:id]  do %>

        <% if !params[:id].nil? %>
          <h3>Editing: <%=h @position.member.full_name %></h3>
        <% end %>
        <div class="cellRow">
          <div class="cellBlock">Name</div>
          <div class="cellBlock"><%= text_field_with_auto_complete :member, :full_name, {:value=> @position.member.nil? ? "" : @position.member.full_name}, :url => {:controller => "members", :action => "complete"}, :skip_style => true %></div>
        </div>

        <div class="cellRow">
          <div class="cellBlock">Position</div>
          <div class="cellBlock">
            <%= select "member", "office",
                        grouped_options_for_select(
                          {
                            "1. Exec" => [
                              ["President","0"],
                              ["1st VP","1"],
                              ["2nd VP","2"],
                              ["3rd VP","3"],
                              ["4th VP","4"],
                              ["Leadership","5"],
                              ["Fellowship","6"],
                              ["Fundraising","7"],
                              ["Treasurer","8"],
                              ["Secretary","9"],
                              ["IRC","10"]
                            ],
                            "2. Appointed" => [
                              ["Sentinel","111"],
                              ["Internet","112"],
                              ["Scouting Liaison","113"],
                              ["Traditions","114"],
                              ["Relay for Life","115"],
                              ["Banquet","116"],
                              ["Barndance","117"],
                              ["Football Concessions","118"],
                              ["Intramurals","119"],
                              ["Pledge Family Olympics","120"],
                              ["Head Project Coordinator","121"],
                              ["Environmental Concerns","122"],
                              ["Miles of Pennies","123"],
                              ["Individual Projects","124"],
                              ["Etc. Coffeehouse","125"],
                              ["UMOC","126"],
                              ["National Service Week","127"],
                              ["Rush Chair/Head Pledge Parent","128"],
                              ["Apothegm","129"],
                              ["Public Relations","130"],
                              ["Historian","131"],
                              ["Good N' Welfare","132"],
                              ["Alumni Secretary","134"],
                              ["Inclusive Communities","135"],
                              ["Boogie Nights","136"],
                              ["National Youth Service Day","137"],
                              ["Appropriations","138"],
                              ["Food Drive","139"]
                            ],
                            "3. Tri-Sec" => [
                              ["Conference Chair","222"],
                              ["Conference External Vice Chair","223"],
                              ["Conference Internal Vice Chair","224"],
                              ["Conference Advisor","225"],
                              ["Service","226"],
                              ["Fellowship","227"],
                              ["Apparel","228"],
                              ["Logistics","229"],
                              ["Fundraising","230"],
                              ["Finance","231"],
                              ["Leadership","232"],
                              ["Registration","233"],
                              ["Public Relations","234"],
                              ["Hotels","235"],
                              ["Banquet","236"]
                            ],
                            "4. Pledge" => [
                              ["President (Pledge)","337"],
                              ["VP (Pledge)","338"],
                              ["Leadership (Pledge)","339"],
                              ["Fellowship (Pledge)","340"],
                              ["Fundraising (Pledge)","341"],
                              ["Treasurer (Pledge)", "342"],
                              ["Secretary (Pledge)","343"],
                              ["Historian (Pledge)","344"],
                              ["T-shirt","345"],
                              ["Skit","346"],
                              ["Good N' Welfare (Pledge)","347"],
                              ["Internet (Pledge)","348"]
                            ]
                          }, nil, "Choose a position") %>
          </div>
        </div>

        <%= submit_tag "Save"%>

        <% if @position.id != nil %>
          <%= submit_tag "Remove"%>
        <% end %>

      <%end%>

    </div>

  <% else %>

    <H1>What are you doing here? =)</H1>

  <% end %>

</div>
